package pers.hubb.enumeration.user;

import pers.hubb.enumeration.BaseEnum;

/**
 * @author hubb
 * @Description
 * @Date 2018/4/21 20:40
 */
public enum UserStateEnum implements BaseEnum {
	//启用
	ON(1, "启用"),
	//禁用
	OFF(0, "禁用");

	private int code;
	private String msg;

	UserStateEnum(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	@Override
	public int getCode() {
		return code;
	}

	@Override
	public String getMsg() {
		return msg;
	}

	@Override
	public String toString() {
		return "UserStateEnum{" +
				"code=" + code +
				", msg='" + msg + '\'' +
				'}';
	}
}
